package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 支付记录对象 t_pay_history
 *
 * @author ruoyi
 * @date 2024-05-14
 */
public class TPayHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 关联前端用户表ID */
    @Excel(name = "关联前端用户表ID")
    private Long tUserId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userNick;

    /** 操作类型（1充值;2提现;3退款;4业务收入增加5业务收入减少） */
    @Excel(name = "操作类型", readConverterExp = "1=充值;2提现;3退款;4业务收入增加5业务收入减少")
    private Integer operationType;

    /** 操作状态
(
充值状态,0充值中,1充值成功,2充值失败，
提现状态,0提现中，1提现成功，2提现失败
) */
    @Excel(name = "操作状态")
    private Integer operationStatus;

    /** 业务上下文信息比如业务id，任务名称什么的，系统内部划转记录。 */
    @Excel(name = "业务上下文信息比如业务id，任务名称什么的，系统内部划转记录。")
    private String operationDescription;

    /** 乐观锁版本号 */
    @Excel(name = "乐观锁版本号")
    private Long version;

    /** 当前账户语言类型编码(如有必要) */
    @Excel(name = "当前账户语言类型编码(如有必要)")
    private String langCode;

    /** 会员id（如有必要冗余字段） */
    @Excel(name = "会员id", readConverterExp = "如=有必要冗余字段")
    private Long vipId;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String extendA;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String extendB;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String extendC;

    /** 代理ID */
    @Excel(name = "代理ID")
    private String agentId;

    /** 支付需要的order_id或下发issue_id */
    @Excel(name = "支付需要的order_id或下发issue_id")
    private String orderId;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 充值回调url */
    @Excel(name = "充值回调url")
    private String url;

    /** 支付时间戳记录 */
    private Integer time;

    /** 签名信息完整记录 */
    @Excel(name = "签名信息完整记录")
    private String sign;

    /** 提现时用户的收款地址 */
    @Excel(name = "提现时用户的收款地址")
    private String addressUser;

    /** 用户ID字符串 */
    @Excel(name = "用户ID字符串")
    private String userId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void settUserId(Long tUserId)
    {
        this.tUserId = tUserId;
    }

    public Long gettUserId()
    {
        return tUserId;
    }
    public void setUserNick(String userNick)
    {
        this.userNick = userNick;
    }

    public String getUserNick()
    {
        return userNick;
    }
    public void setOperationType(Integer operationType)
    {
        this.operationType = operationType;
    }

    public Integer getOperationType()
    {
        return operationType;
    }
    public void setOperationStatus(Integer operationStatus)
    {
        this.operationStatus = operationStatus;
    }

    public Integer getOperationStatus()
    {
        return operationStatus;
    }
    public void setOperationDescription(String operationDescription)
    {
        this.operationDescription = operationDescription;
    }

    public String getOperationDescription()
    {
        return operationDescription;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }
    public void setLangCode(String langCode)
    {
        this.langCode = langCode;
    }

    public String getLangCode()
    {
        return langCode;
    }
    public void setVipId(Long vipId)
    {
        this.vipId = vipId;
    }

    public Long getVipId()
    {
        return vipId;
    }
    public void setExtendA(String extendA)
    {
        this.extendA = extendA;
    }

    public String getExtendA()
    {
        return extendA;
    }
    public void setExtendB(String extendB)
    {
        this.extendB = extendB;
    }

    public String getExtendB()
    {
        return extendB;
    }
    public void setExtendC(String extendC)
    {
        this.extendC = extendC;
    }

    public String getExtendC()
    {
        return extendC;
    }
    public void setAgentId(String agentId)
    {
        this.agentId = agentId;
    }

    public String getAgentId()
    {
        return agentId;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setTime(Integer time)
    {
        this.time = time;
    }

    public Integer getTime()
    {
        return time;
    }
    public void setSign(String sign)
    {
        this.sign = sign;
    }

    public String getSign()
    {
        return sign;
    }
    public void setAddressUser(String addressUser)
    {
        this.addressUser = addressUser;
    }

    public String getAddressUser()
    {
        return addressUser;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tUserId", gettUserId())
            .append("userNick", getUserNick())
            .append("operationType", getOperationType())
            .append("operationStatus", getOperationStatus())
            .append("operationDescription", getOperationDescription())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("langCode", getLangCode())
            .append("vipId", getVipId())
            .append("extendA", getExtendA())
            .append("extendB", getExtendB())
            .append("extendC", getExtendC())
            .append("agentId", getAgentId())
            .append("orderId", getOrderId())
            .append("amount", getAmount())
            .append("url", getUrl())
            .append("time", getTime())
            .append("sign", getSign())
            .append("addressUser", getAddressUser())
            .append("userId", getUserId())
            .toString();
    }
}
